package lab02.test21;

import java.util.HashMap;
import java.util.Map;

public class Test21 {
    public static int str(String s, char c) {
        int count = 0;
        for(int i=0;i<s.length();i++){
            if(s.charAt(i)==c){
                count++;
            }
        }
        return count;
    }

    public static void main(String[] args) {
        System.out.println(new Test21().str("fdhgdjddjhd",'d'));

    }
}

